#ifndef _MEMECHUNK_H
#define _MEMCHUNK_H

struct memchunk {
    list_node node;
    void *mem;
    int pos;
    int length;
};

struct memchunk_queue {
    list_node head; 
    pthread_mutex_t mutex;
    int min;
    int size;

};


struct memchunk *memchunk_new(int lenghth)
{
    struct memechunk *chunk = 
}












#endif
